package com.qipay.db.domains;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import org.bson.types.ObjectId;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user")
public class Document {
  @Id
  @Column(name = "id", length = 24, unique = true, updatable = false)
  @Getter
  @Setter(AccessLevel.PROTECTED)
  private String id = new ObjectId().toString();
  private String name;
  private String content;
  private java.sql.Timestamp created;
  private java.sql.Timestamp updated;

}
